#pragma  once

#include <assert.h>
#include <stdio.h>
//#include "System/log.h"

#ifndef _FINAL

//#define ASSERT(__CONDITION__)
//#define ASSERTTXT(__CONDITION__,__MSG__)
#define ASSERT(__CONDITION__) do{if (!(__CONDITION__))assert2(0,#__CONDITION__,__FILE__,__LINE__);}while(0)
#define ASSERTTXT(__CONDITION__,__MSG__) do{if (!(__CONDITION__)) assert2(0,__MSG__,__FILE__,__LINE__);}while(0)

void assert2(bool i_Condition, const char* i_Msg, const char* i_File, int i_Line);
#else

#define ASSERT(__CONDITION__)
#define ASSERTTXT(__CONDITION__,__MSG__)

#endif
